//
//  OAuthViewController.swift
//  weibo_swift01
//
//  Created by 孙郝聪 on 16/8/6.
//  Copyright © 2016年 shc. All rights reserved.
//

import UIKit

class OAuthViewController: UIViewController {

    private lazy var webView = UIWebView()

    //MARK: - 监听方法
    //关闭
    @objc private func close() {
        dismissViewControllerAnimated(true, completion: nil)

    }

        //MARK: - 设置界面

        override func loadView() {
            view = webView
            title = "登录新浪微博"

            navigationItem.leftBarButtonItem = UIBarButtonItem(title: "关闭", style: .Plain, target: self, action: #selector(OAuthViewController.close))
        }


}
